<!--{*
/**
* @author Bimal Poudel
* @copyright since 2006, Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

Created on: 2011-03-26 02:03:36 285
*}-->

<div class="information">
	<ul class="links">
		<li><a href="categories-list.php"><img src="{'table'|icon}" title="List Categories" alt="List Categories" /> List Categories</a></li>
	</ul>
</div>

<div class="clear"><!--{*  style="clear:both;" *}--></div>

<form id="categories-edit-form" name="categories-edit-form" method="post" action="categories-edit.php">
  <table class="data edit">

<!-- file or image upload script/patch -->
<!--{*
	<tr class="{cycle values='A,B'} waring-overwrite">
		<td class="attribute">categories File/Picture:</td>
		<td>
			<input type="file" name="categoriesfile" id="categoriesfile" value="" />
			<a href="{$categories.categoriesfile}" target="preview">View current</a>
		</td>
	</tr>
*}-->


	<tr class="{cycle values='A,B'}">
		<td class="attribute">Category Name:</td>
		<td><input type="text" name="categories[category_name]" value="{$categories.category_name|htmlentities}" class="input" id="categories-category_name" /></td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Category Description:</td>
		<td class="value"><textarea rows="5" cols="50" name="categories[category_description]" class="editor" id="categories-category_description">{$categories.category_description|htmlentities}</textarea></td>
	</tr>


    <tr>
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="category_id" value="{$categories.category_id}" />
		
		<!-- This is different than system's protection code. This is related to particular ID. -->
		<input type="hidden" name="protection_code" value="{$categories.code}" />
		<input type="hidden" name="edit-action" value="Edit Categories" />
		<input type="submit" name="submit-button" class="submit" value="Save Changes" />
		Or, <a href="{url::last_page('categories-list.php')}">Cancel</a>
	  </td>
    </tr>
  </table>
</form>

<!-- Validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/categories/edit.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of categories Edit -->